package jgl.vajra.management.part.home.fragment;

import jgl.vajra.management.R;
import jgl.vajra.management.databinding.FragmentHomeOwnerBinding;
import jgl.vajra.management.manager.IntentManager;
import jgl.vajra.management.part.home.contract.HomeOwnerContract;
import jgl.vajra.management.part.home.viewModel.HomeOwnerViewModel;
import jgl.vajra.management.widget.mvvm.factory.CreateViewModel;
import jgl.vajra.management.widget.mvvm.view.BaseMVVMFragment;

/**
 * 车主端
 */
@CreateViewModel(HomeOwnerViewModel.class)
public class HomeOwnerFragment extends BaseMVVMFragment<HomeOwnerViewModel, FragmentHomeOwnerBinding> implements HomeOwnerContract.View {
    @Override
    public int getLayoutId() {
        return R.layout.fragment_home_owner;
    }

    @Override
    public void initView() {
        mBinding.setView(this);

    }

    @Override
    public void initData() {

    }

    @Override
    public void initEvent() {

    }

    //internal 0-外部车辆，1-内部车辆
    //证件认证
    @Override
    public void onCertificateAuthentication(int internal) {
        IntentManager.toMyCarActivity(mActivity,1,internal);
    }

    //车贴认证
    @Override
    public void onStickerCertification(int internal) {
        IntentManager.toMyCarActivity(mActivity,2,internal);
    }
}
